home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / dsp / dspgroup / emul_320.arc / IO.DOC < prev    next >
Encoding:
Text File  |  1985-02-21  |  1.8 KB  |  56 lines

  1. The emulators normally prompt you for input from a port when
  2. your simulation requires.  You may read such input from a
  3. carefully prepared disk file. First: when the program prompts
  4. you for input from the port you must type:
  5.  
  6. <filespec
  7.  
  8. where the < tells the input routine that input is to come
  9. from file filespec.  For example, when the input routine prompts
  10. with:
  11.  
  12.      At pc=xxxx Input for port yy:
  13.  
  14. If you now type <b:inpdata.dat, then data will be read
  15. from file inpdata.dat on drive b:.
  16.  
  17. The requisite file format for such input data files is of the form:
  18.  
  19. @##=v1,v2,v3,v4,v5,v6
  20.  
  21. where ## is a two hex digit port number, and v1,v2,... are two hex
  22. digit values to be taken in sequence. For example:
  23.  
  24. @01=07,06,05,04
  25.  
  26. defines the input for port 01 to be the succesive values 07,06....
  27. If either the list is exhausted, or the input file does not define
  28. an input string for a required port number, the program will prompt
  29. you for input as before.
  30.  
  31. Character values can be input as the two character sequence 'c
  32. where c is the character to be input.
  33.  
  34. Each input value can be preceded by a decimal repetition factor:
  35.  
  36. @01=100*02,20*03,04
  37.  
  38. which causes the input for port 01 to be the value 02 for the first
  39. 100 reads from that port, then the value 03 for the next 20 reads,
  40. and finally the value 04.
  41.  
  42. LIMITATIONS:
  43.     1. The input data file must be less than 4192 characters.
  44.     2. Each port definition (@xx=) must start on a new line.
  45.     3. Each line in the file must end with CR/LF.
  46.     4. Very little error checking is done on the input file.
  47.  
  48. In addition to the above modification of input, the output routine
  49. can also be caused to proceed without your intervention: When the
  50. program displays:
  51.  
  52. Output for port xx=yy (Press Key to continue)
  53.  
  54. The program will no longer pause at addtional output if you
  55. type > at the prompt.
  56.